package eSchool.Utils;

public class TextHelper {
    
    public static final String EmptyString = "";
    
    public static String toString(String val){
        if(val != null)
            return val;
        else
            return EmptyString;
    }
    
    public static String toString(Object val){
        if(val != null)
            return String.valueOf(val);
        else
            return EmptyString;
    }
    
     public static String toString(int val){
         try{
             return String.valueOf(val);
         }   
         catch(NullPointerException ex){
            return EmptyString;
         }
     }
}
